<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <my-component></my-component>
</div>
</body>
<script src="../js/vue.1.0.24.js"></script>
<script>
    var myComponent = Vue.extend({
        template: '<div>This is myfirst component!</div>'
    })

    new Vue({
        el:'#app',
        components:{
            'my-component' : myComponent
        }
    })
</script>
</html>